/*
 * Copyright (C) 2000 - 2024 Silverpeas
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * As a special exception to the terms and conditions of version 3.0 of
 * the GPL, you may redistribute this Program in connection with Free/Libre
 * Open Source Software ("FLOSS") applications as described in Silverpeas's
 * FLOSS exception.  You should have received a copy of the text describing
 * the FLOSS exception, and it is also available here:
 * "https://www.silverpeas.org/legal/floss_exception.html"
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

.space-and-component-selector .selected ul li {
  position: relative;
}

.space-and-component-selector .selected ul li a:not(.unselect) {
  display: block;
  margin-right: calc(16px + 1em);
}

.space-and-component-selector .selected .components ul li a:has(span) {
  background: transparent var(--selected-component-icon) 0 0 no-repeat;
  padding-left: 24px;
  background-size: auto 16px;
  line-height: min(16px);
}

.space-and-component-selector .selected ul li a.unselect {
  position: absolute;
  top: calc(50% - 8px);
  right: 1em;
  background: transparent url(../../../../../util/icons/delete.gif) 0 0 no-repeat;
  width: 16px;
  height: 16px;
  background-size: auto 16px;
}

.space-and-component-selector .selected ul li a.unselect span {
  display: none;
}

.select-button {
  border: 1px solid #888;
  border-radius: 4px;
  padding: 0.5em 1em;
  display: inline-block;
  background: linear-gradient(180deg, #FFF, #DEDEDE);
}

.select-button:hover,
.select-button:focus {
  border: 1px solid #777;
  background: linear-gradient(180deg, #FFF, #CECECE);
}